import os
import GameLogic

# init each object needed
cont = GameLogic.getCurrentController()
send  = cont.getActuator('sendmess')

# check if lolita must send a message to play
# an action from a scenario
if os.path.exists('action.txt'):
	f = open("action.txt", "r")
	text = f.read()
	listtext = text.split('\n')
	send.setBody(listtext[0])
	GameLogic.addActiveActuator(send,1)
	f.close()
	os.remove('action.txt')
